package com.ljx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ljx.domain.entity.Article;
import com.ljx.domain.vo.ArticleCountVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 李捷禧
 * Date: 2023/4/18
 * ClassName: ArticleMapper
 */

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    List<ArticleCountVo> findCount(@Param("create_by") Long create_by,
                                   @Param("startDate")
                                   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") String startDate,
                                   @Param("endDate")
                                   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")String endDate);
}
